package se.boars.dailystatistics;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class tabHost extends TabActivity{
	
	TabHost tabHost;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tabmain);
		
		Resources res = getResources();
		tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;
		
		intent = new Intent().setClass(this, main.class);
		spec = tabHost.newTabSpec("main").setIndicator("Question", res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
		tabHost.addTab(spec);
		
		intent = new Intent().setClass(this, suggestQuestion.class);
		spec = tabHost.newTabSpec("suggest").setIndicator("Suggest Question", res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
		tabHost.addTab(spec);
		
		intent = new Intent().setClass(this, resultPage.class);
		spec = tabHost.newTabSpec("result").setIndicator("Results", res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
		tabHost.addTab(spec);
	}
}
